using System.Collections.Generic;
using System.Web.UI;
using DotNetNuke.Entities.Modules;

namespace Code5Systems.FormMaster
{

	public partial class FormMasterEdit : DotNetNuke.Entities.Modules.PortalModuleBase
	{
		
#region Page Controls
		protected DotNetNuke.UI.UserControls.LabelControl lblLabelPosition;
		protected DotNetNuke.UI.UserControls.LabelControl lblRows;
		protected DotNetNuke.UI.UserControls.LabelControl lblCols;
		protected DotNetNuke.UI.UserControls.LabelControl lblBcc;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlType;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlLabelCssClass;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlTextMode;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlCssClass;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlWidth;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlHeight;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlRepeadDirection;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlRepeatColumns;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlFillStates;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlFillCountries;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlRows;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlColumns;
		protected DotNetNuke.UI.UserControls.LabelControl lblControlMaxLength;
		protected DotNetNuke.UI.UserControls.UrlControl ctlImage;
		protected DotNetNuke.UI.UserControls.TextEditor htmlEditor;
		
#endregion
		
#region Web Form Designer Generated Code
		
		//This call is required by the Web Form Designer.
		[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
		{
			
		}
		
		//NOTE: The following placeholder declaration is required by the Web Form Designer.
		//Do not delete or move it.
		private System.Object designerPlaceholderDeclaration;
		
		private void Page_Init(System.Object sender, System.EventArgs e)
		{
			//CODEGEN: This method call is required by the Web Form Designer
			//Do not modify it using the code editor.
			
			InitializeComponent();

			//var adapters = Context.Request.Browser.Adapters;
			//var radioButtonListType = typeof(RadioButtonList).AssemblyQualifiedName;
			//var adapterType = typeof(RadioButtonListAdapter).AssemblyQualifiedName;
			//if (!adapters.Contains(radioButtonListType))
			//{
			//	adapters.Add(radioButtonListType, adapterType);
			//}
			
		}
		
#endregion
		
#region Private Members
		
		private DotNetNuke.Entities.Modules.PortalModuleBase _loaderCtl;
		private Code5Systems.FormMaster.Business.FormInfo objFormInfo;
		private System.Xml.Linq.XDocument xDoc;
		private Code5Systems.FormMaster.Business.FormController objFormCtl;
		private Code5Systems.FormMaster.Business.FormController.Fields editFields;
		private bool bFormChange = false;
		private Code5Systems.FormMaster.Business.FormControlInfo objCurValidatorControlInfo;
		private string strLocation = "1,1";
		private ControlLoaction oCtlLoc;
		private FormSettings objFormSettings;
		private string strOperationSuccess;
		private Code5Systems.FormMaster.Business.CellInfo[,] tAry = new Code5Systems.FormMaster.Business.CellInfo[2, 2];
		private bool _hasSubmitButton = false;
		private bool _hasRequredFieldValidators = false;
		private UpdatePanel _updatePanel;
		private List<int> usedRows = new List<int>();
		private List<int> usedCols = new List<int>();
		private bool canEditQuery = true;
		private bool bAjaxDisabled = false;
		private int _controlCount;
		private Code5Systems.FormMaster.Business.FormControlInfo _objFormControlInfo;
		private bool _previewMode = false;
		private int _curPage;
		
#endregion
		
#region Public Properties
		public PortalModuleBase LoaderCtl
		{
			get
			{
				if (_loaderCtl == null)
				{
					_loaderCtl = this;
				}
				
				return _loaderCtl;
			}
			set
			{
				_loaderCtl = value;
			}
		}
		
		//Public ReadOnly Property Pin() As String
		//	Get
		//		Return Localization.GetString("Pin", Me.LocalResourceFile)
		//	End Get
		//End Property
		
		//Public ReadOnly Property UnPin() As String
		//	Get
		//		Return Localization.GetString("UnPin", Me.LocalResourceFile)
		//	End Get
		//End Property
#endregion
		
		
	}
	
}


